﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ProjectStorageLib.Project
{
    public class ProjectManagerPocessor : DatabaseEntities
    {
        #region Constructor and Destructor

        public ProjectManagerPocessor()
            : base()
        { }

        protected override void Dispose(bool flag)
        {
            
        }

        #endregion Constructor and Destructor

        #region Methods

        public List<decimal> GetAllProjectsId()
        {
            try
            {
                return (from pr in ent.Projects
                        select pr.ProjectID).ToList();
            }
            catch(Exception)
            {
                throw;
            }
        }

        #endregion Methods
    }
}
